API Reference > Other Classes > OdAnsiString Class > OdAnsiString Operators > OdAnsiString::[] Operator
OdAnsiString::[] Operator
Syntax
C++
char operator [](int charIndex) const;
Parameters 
Description 
int charIndex 
[in] Character index. 

Returns the single character of this String object at the specified position.

Indexing Operator

Copyright © 2002–2020. Open Design Alliance. All rights reserved.